//
//  Shipu_hot.m
//  ThePrivateKitchen
//
//  Created by lirui on 16/1/20.
//  Copyright © 2016年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "Shipu_hot.h"

@implementation Shipu_hot
- (void)dealloc
{ [_imgView1 release];
    [_imgView2 release];
    [_imgView3 release];
    [_label1_1 release];
    [_label1_2 release];
    [_label2_1 release];
    [_label2_2 release];
    [_label3_1 release];
    [_label3_2 release];
    [super dealloc];
}
/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if ( self) {
        [self creatview];
    }
    return  self;
}
-(void)creatview
{
    
    
    self.imgView1 =[[ UIImageView alloc] initWithFrame:CGRectMake((( 0*WIDTH *375 - 40*WIDTH )/ 3)+ 20*WIDTH, HEIGHT *40, (WIDTH *375 - 40*WIDTH) / 3, HEIGHT*100)];
    
    [self addSubview:_imgView1];
    
    [_imgView1 release];
    
    self.label1_1 =[[ UILabel alloc] initWithFrame:CGRectMake(_imgView1.frame.origin.x, HEIGHT*140, (WIDTH * 375 - 40*WIDTH) / 3, HEIGHT*30)];
    _label1_1.font = [UIFont systemFontOfSize:15];
    [self addSubview:_label1_1];
    _label1_1.textAlignment = NSTextAlignmentCenter;
    [_label1_1 release];
    
    self.label1_2 =[[ UILabel alloc] initWithFrame:CGRectMake(_imgView1.frame.origin.x, HEIGHT*170, (WIDTH * 375 - WIDTH*40) / 3, HEIGHT*30)];
    _label1_2.font = [UIFont systemFontOfSize:13];
    
    [self addSubview:_label1_2];
    [_label1_2 release];
    
    
    self.imgView2 =[[ UIImageView alloc] initWithFrame:CGRectMake((( 1*WIDTH * 375 - 40*WIDTH )/ 3)+ 20*WIDTH, HEIGHT*40, (WIDTH * 375 - 40*WIDTH) / 3, HEIGHT*100)];
    
    [self addSubview:_imgView2];
    
    [_imgView2 release];
    
    self.label2_1 =[[ UILabel alloc] initWithFrame:CGRectMake(_imgView2.frame.origin.x, HEIGHT*140, (WIDTH * 375 - WIDTH*40) / 3, HEIGHT*30)];
    _label2_1.font = [UIFont systemFontOfSize:15];
    _label2_1.textAlignment = NSTextAlignmentCenter;
    
    [self addSubview:_label2_1];
    [_label2_1 release];
    
    self.label2_2 =[[ UILabel alloc] initWithFrame:CGRectMake(_imgView2.frame.origin.x, HEIGHT*170, (WIDTH * 375 - WIDTH*40) / 3, HEIGHT*30)];
    _label2_2.font = [UIFont systemFontOfSize:13];
    [self addSubview:_label2_2];
    [_label2_2 release];
    
    self.imgView3 =[[ UIImageView alloc] initWithFrame:CGRectMake((( 2*WIDTH * 375 - 40*WIDTH )/ 3)+ 20*WIDTH, HEIGHT*40, (WIDTH * 375 - WIDTH*40) / 3, HEIGHT*100)];
    _imgView3.backgroundColor = [ UIColor redColor];
    [self addSubview:_imgView3];
    
    [_imgView3 release];
    
    self.label3_1 =[[ UILabel alloc] initWithFrame:CGRectMake(_imgView3.frame.origin.x,WIDTH * 140, (WIDTH * 375 - WIDTH*40) / 3, HEIGHT*30)];
    _label3_1.font = [UIFont systemFontOfSize:15];
    [self addSubview:_label3_1];
    _label3_1.textAlignment = NSTextAlignmentCenter;
    
    [_label3_1 release];
    
    self.label3_2 =[[ UILabel alloc] initWithFrame:CGRectMake(_imgView3.frame.origin.x, WIDTH*170, (WIDTH * 375 - WIDTH*40) / 3, HEIGHT*30)];
    _label3_2.font = [UIFont systemFontOfSize:13];
    [self addSubview:_label3_2];
    [_label3_2 release];
    self.title = [[ UILabel alloc ] initWithFrame:CGRectMake(10 * WIDTH, HEIGHT*10, WIDTH*280, 30 * HEIGHT)];
    [self  addSubview:_title];
    
    [_title release];
}


@end
